package cn.mldn.experiment.threadOfProducerAndConsumer;

public class Client
{
	public static void main(String[] args) throws Exception
	{
		Message msg = new Message(); // 定义Message对象，用于保存和取出数据
		new Thread(new Producer(msg)).start(); // 启动生产者线程
		new Thread(new Consumer(msg)).start(); // 取得消费者线程
	}
}